package com.example.demo.tlwbus;

public class StringUtils {
    /**
     * 生成总线key
     *
     * @param busNetworkStatus
     * @return
     */
    public static String generBusKey(BusNetworkStatus busNetworkStatus) {
        if (busNetworkStatus == null) {
            return null;
        }
        return String.format("%s:%s", busNetworkStatus.getIp(), busNetworkStatus.getPort());
    }
}
